﻿<%@ Control Language="C#" %>
<%@ Register src="../module/Admincenter-Types-Small-Editor.ascx" tagname="SmallEdit" tagprefix="inal" %>

<script runat="server">
    private int type = 0;
    private int root_id = 0;
    protected void Page_Load(object sender, EventArgs e)
    {
        Types types = new Types();
        Repeater_List.DataSource = types.List(Root_Id, Type, Item_Lang);
        Repeater_List.DataBind();
    }
    /// <summary>
    /// 对象类型
    /// </summary>
    /// 
    public int Type
    {
        get { return type; }
        set { type = value; }
    }

    /// <summary>
    /// 跟目录ID
    /// </summary>
    public int Root_Id
    {
        get { return root_id; }
        set { root_id = value; }
    }
    
    private int lang = 1;
    public int Item_Lang
    {
        get { return lang; }
        set { lang = value; }
    }
</script>

        <asp:Repeater runat="server" ID="Repeater_List">
            <ItemTemplate>
                <div id="TR<%#Eval("Id") %>" class="bd-column column">
                    <code><%#Eval("orders") %></code>
                    <span title="ID:<%#Eval("Id") %>" class="name"><%#Eval("Name") %></span>
                    <a href="javascript:Del(<%#Eval("Id") %>,5)" class="del"><%=Lang.Show("Del") %></a>
                    <a class="edit" href="javascript:ShowTypeEdit(<%#Eval("Id") %>)"><%=Lang.Show("Edit") %></a> 
                    <a class="edit" href="Type-Edit.aspx?id=<%#Eval("Id") %>&lang=<%=Item_Lang %>&typ=<%=Type %>"><%=Lang.Show("Advanced")%> - <%=Lang.Show("Edit") %></a> 
                    <a href="javascript:Staticize_Obj(<%#Eval("Id") %>,<%=Utils.GetQueryString("typ",1) %>)"><%=Lang.Show("Refresh")%></a>
                    <a class="add" href="Ploting.aspx?id=<%#Eval("Id") %>&obj_typ=5&isreturn=1"><%=Lang.Show("CoverPage")%></a>
                    <!--快速编辑组件-->
                    <div class="small_edit" id="SmallEditor_<%#Eval("Id") %>"><inal:SmallEdit runat="server" Type_Id='<%#Utils.ToInt(Container.DataItem,"Id") %>' Type_Orders='<%#Eval("orders") %>' Type_Name='<%#Eval("Name") %>' /></div>
                </div>
            </ItemTemplate>
        </asp:Repeater>